package com.shinji.tratu;

public class Constants {

	public static final String PREF_CLICK_AD_OR_NOT_KEY = "PREF_CLICK_AD_OR_NOT";
	public static final long TIME_RANGE_DISABLE_AD = 3 * 24 * 60 * 60 * 1000; // ms
	// public static final long TIME_RANGE_DISABLE_AD = 1 * 1 * 2 * 60 * 1000;
	// // ms
	public static final String[] LIST_DIC = new String[] { "en_vn", "vn_en",
			"vn_vn", "fr_vn", "vn_fr", "en_en", "jp_vn", "vn_jp", "en_jp",
			"jp_en", "kr_vn", "cn_vn" };
	public static final String[] LIST_DIC_NAME = new String[] { "Anh - Việt",// 0
			"Việt - Anh",// 1
			"Việt - Việt", // 2
			"Pháp - Việt", // 3
			"Việt - Pháp",// 4
			"Anh - Anh", // 5
			"Nhật - Việt", // 6
			"Việt - Nhật", // 7
			"Anh - Nhật",// 8
			"Nhật - Anh", // 9
			"Hàn - Việt", // 10
			"Trung - Việt" // 11
	};
	public static final boolean[] MOBILE_OR_NOT = new boolean[] { false,// true,
																		// // 0
			false, // 1
			false, // 2
			false, // true, // 3
			false, // 4
			false, // true, // 5
			false, // 6
			false, // 7
			false, // true, // 8
			false, // 9
			false, // 10
			false // 11
	};
	public static final String[] LIST_DIV_ID = new String[] { "bodyContent",// "content",//
																			// 0
			"bodyContent",// 1 ok
			"bodyContent", // 2 ok
			"bodyContent",// "content", // 3 ok
			"bodyContent",// 4 ok
			"bodyContent",// "content", // 5 ok
			"bodyContent", // 6 ???
			"bodyContent", // 7 ok
			"bodyContent",// "content",// 8 ok
			"bodyContent", // 9
			"bodyContent", // 10
			"bodyContent" // 11
	};

	public static final String DATABASE_NAME = "dic.db";
	public static final int DATABASE_VERSION = 8;
	public static final String WORD_TABLE = "WORD_TABLE";
	public static final String WORD_ID = "WORD_ID";
	public static final String WORD_KEY = "WORD_KEY";
	public static final String WORD_SEARCH_SUCCEED = "WORD_SEARCH_SUCCEED";
	public static final String WORD_DIC_TYPE = "WORD_DIC_TYPE";
	public static final String WORD_SEARCH_RESULT = "WORD_SEARCH_RESULT";
	public static final String WORD_ON_HANDBOOK = "WORD_ON_HANDBOOK";
	public static final String WORD_DIC_INDEX = "WORD_DIC_INDEX";
	public static final String WORD_AUDIO_SERVER_LINK = "WORD_AUDIO_SERVER_LINK";
	public static final String CREATE_TABLE_WORD = "create table IF NOT EXISTS "
			+ WORD_TABLE
			+ "("
			+ WORD_ID
			+ " integer primary key autoincrement, "
			+ WORD_KEY
			+ " text not null, "
			+ WORD_SEARCH_SUCCEED
			+ " integer, "
			+ WORD_DIC_TYPE
			+ " text,  "
			+ WORD_SEARCH_RESULT
			+ " text, "
			+ WORD_ON_HANDBOOK
			+ " integer, "
			+ WORD_DIC_INDEX
			+ " integer, "
			+ WORD_AUDIO_SERVER_LINK + " text" + ");";
}
